package com.xbongbong.paas.feign;

import com.xbongbong.paas.pojo.dto.WorkOrderV2DynamicDTO;
import com.xbongbong.paas.pojo.linkdata.LinkDataExplainVO;
import com.xbongbong.paas.pojo.vo.WorkOrderV2ComboVO;
import com.xbongbong.paas.toolbox.wrap.XbbResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@FeignClient(name = "xbb-work-order-web", contextId = "WorkOrderV2DynamicFeignClient")
public interface WorkOrderV2DynamicFeignClient {

    /**
     * @Author: ruansicheng
     * @Description: 批量插入工单动态
     * @Date: 下午5:10 2022/11/28
     * @Param: [formGetDTO, lang]
     * @return: com.xbongbong.paas.toolbox.wrap.XbbResponse<com.xbongbong.paas.pojo.vo.WorkOrderV2ComboVO>
     **/
    @RequestMapping(value = "/pro/v1/workOrderV2/feign/batchAddDynamic", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<WorkOrderV2ComboVO> batchAddDynamic(@RequestBody List<WorkOrderV2DynamicDTO> workOrderV2DynamicDTOs);

    /**
     * 批量删除工单动态
     * @param workOrderV2DynamicDTOs
     * @return
     */
    @RequestMapping(value = "/pro/v1/workOrderV2/feign/batchDeleteDynamic", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<LinkDataExplainVO> batchDeleteDynamic(@RequestBody List<WorkOrderV2DynamicDTO> workOrderV2DynamicDTOs);
}
